﻿<phone:PhoneApplicationPage 
    x:Class="demobackground.SettingPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Landscape" Orientation="Landscape"
    mc:Ignorable="d" d:DesignHeight="480" d:DesignWidth="728"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="#212147">
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="24,8,0,-8">
            <Grid.Background>
            <LinearGradientBrush>
                <LinearGradientBrush.GradientStops>

                    <GradientStopCollection>
                            <GradientStop Offset="0.25" Color="Black"/>
                            <GradientStop Offset="1" Color="DarkBlue"/>
                        </GradientStopCollection>

                </LinearGradientBrush.GradientStops>
            </LinearGradientBrush>
            </Grid.Background>
            <toolkit:MultiselectList x:Name="lbLinhVuc" 
                                     Margin="0,86,40,62" HorizontalAlignment="Center" Width="620">
                
                <toolkit:MultiselectList.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Margin="0,0,0,24" >
                            <TextBlock Text="{Binding Path=TenLinhVuc}" 
                                       Margin="0,0,0,0"                                        />

                        </StackPanel>
                    </DataTemplate>
                </toolkit:MultiselectList.ItemTemplate>
            </toolkit:MultiselectList>

            <!--<Button x:Name="btnLinhVuc" BorderBrush="#fdb415" Content="OK" Margin="0,0,31,180" VerticalAlignment="Bottom" HorizontalAlignment="Right" Click="btnLinhVuc_Click" />-->
            <TextBlock  Height="42" HorizontalAlignment="Center"  FontSize="35" Name="textBlock1" Text="LĨNH VỰC"  Width="158" VerticalAlignment="Top" Margin="0,10,0,0" >
                <TextBlock.Foreground>
                        <LinearGradientBrush>
                            <GradientStop x:Name="gradientStop1" 
                                          Offset="0" Color="Red" />
                            <GradientStop x:Name="gradientStop2" 
                                          Offset="1" Color="Blue" />
                        </LinearGradientBrush>
                    </TextBlock.Foreground>
            </TextBlock>
            <Grid.Triggers>
                <EventTrigger>
                    <BeginStoryboard>
                        <Storyboard>
                            <ColorAnimation Storyboard.TargetName="gradientStop1"
                                                Storyboard.TargetProperty="Color"
                                                From="Red" To="Blue" Duration="0:0:11"
                                                AutoReverse="True"
                                                RepeatBehavior="Forever" />

                            <ColorAnimation Storyboard.TargetName="gradientStop2"
                                                Storyboard.TargetProperty="Color"
                                                From="Blue" To="Red" Duration="0:0:13"
                                                AutoReverse="True"
                                                RepeatBehavior="Forever" />

                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
            </Grid.Triggers>
        </Grid>
   
    </Grid>

    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/appbarsave.png" Text="Lưu" Click="ApplicationBarIconButton_Click_1" />
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
